package com.wengcheng.order;

import com.wengcheng.pay.IPayService;
import com.wengcheng.user.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service(value = "orderService")
public class OrderServiceImpl implements IOrderServices {

    @Autowired
    private IUserService userService;

    @Autowired
    private IPayService payService;


    public DoOrderResponse doOrder(DoOrderRequest request) {
        System.out.println("曾经来过：" + request);
        DoOrderResponse response = new DoOrderResponse();
        response.setCode("111111");
        response.setMemo("处理成功");

        userService.get("用户1");

        payService.doPay(request);

        return response;
    }
}
